package com.sfh.service.model;

import java.util.Date;

import com.sfh.service.model.table.MassTable;

public class MassModel extends BaseModel<MassModel> {

	private static final long serialVersionUID = 548488087111924676L;

	public static final MassModel MASS = new MassModel().dao();

	@Override
	public MassModel findById(Object idValue) {
		return super.findFirst("select * from " + MassTable.Table + " where " + MassTable.id + "=?", idValue);
	}

	public long getId() {
		return this.get(MassTable.id.toString());
	}

	public void setId(long id) {
		this.set(MassTable.id.toString(), id);
	}

	public Date getTime() {
		return this.get(MassTable.time.toString());
	}

	public void setTime(Date date) {
		this.set(MassTable.time.toString(), date);
	}

	public long getVersion() {
		return this.getLong(MassTable.version.toString());
	}

	public void setVersion(long version) {
		this.set(MassTable.version.toString(), version);
	}

	public int getVip() {
		return this.get(MassTable.vip.toString());
	}

	public void setVip(int vip) {
		this.set(MassTable.vip.toString(), vip);
	}

	public long getUserId() {
		return this.get(MassTable.userId.toString());
	}

	public void setUserId(long userId) {
		this.set(MassTable.userId.toString(), userId);
	}

	public long getSize() {
		return this.getLong(MassTable.size.toString());
	}

	public void setSize(long size) {
		this.set(MassTable.size.toString(), size);
	}

	public String getTitle() {
		return this.get(MassTable.title.toString());
	}

	public void setTitle(String title) {
		this.set(MassTable.title.toString(), title);
	}

	public String getcontent() {
		return this.get(MassTable.content.toString());
	}

	public void setContent(String content) {
		this.set(MassTable.content.toString(), content);
	}

	public String getUrl() {
		return this.get(MassTable.url.toString());
	}

	public void setUrl(String url) {
		this.set(MassTable.url.toString(), url);
	}
	public long getWealth() {
		return this.getLong(MassTable.wealth.toString());
	}

	public void setWealth(long size) {
		this.set(MassTable.wealth.toString(), size);
	}
}
